<template>
  <div class="PanelTemplate">
    <div id="headPanel"></div>
    <div ref="echartsData"></div>
    <div id="footPanel"></div>
  </div>
</template>

<script>
export default {
  name: 'PanelTemplate',
  data: function () {
    return {
    }
  },
  methods: {
    drawLine (newOption) {
      // 基于准备好的dom，初始化echarts实例
      let mycharts = this.$echarts.init(this.$el)
      // 绘制图表
      mycharts.setOption(newOption)
    },
    showOption () {
      return this.echartsOption
    }
  }
}
</script>

<style scoped>
#echartsData{
  width: 400px;
  height: 300px;
}
.PanelTemplate{
  width: 400px;
  height: 300px;
  z-index: 127;
  border: 1px solid rgba(25, 186, 139, 0.17);
  background: rgba(255, 255, 255, 0.04) url('../../../assets/img/line.png');
}
#headPanel{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
#headPanel::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #01e8ff;
  border-left: 2px solid #01e8ff;
}
#headPanel::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #01e8ff;
  border-right: 2px solid #01e8ff;
}
#footPanel{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
#footPanel::before {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #01e8ff;
  border-left: 2px solid #01e8ff;
}
#footPanel::after {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #01e8ff;
  border-right: 2px solid #01e8ff;
}
</style>
